package com.ag.score.thread;



import com.ag.score.thread.service.RecordService;


public class RecordThread extends  Thread{



    public void run (){

        try {
            Thread.sleep(10 * 1000);
        }catch (Exception e){
            e.printStackTrace();
        }

        RecordService servcie = new RecordService();
        while (true){

            try {

                    servcie.processRecord();

            }catch (Exception e){
                e.printStackTrace();
            }


            try {

                Thread.sleep(10 * 1000);
            }catch (Exception e){
                e.printStackTrace();
            }
        }







    }








}
